< previous page page_473 next page >

Page 473
Type.gifListing 12.5. Coding the General Declarations section of the dbFind control.
Option Explicit
'
' local storage
Private strListField As String
Private strBoundColumn As String
Private strDBName As String
Private strRSName As String
Private strConnect As String
Private strBoundColumn as String
'
' event messages
Public Event Selected(SelectValue As Variant)
Public Event Cancel()
After declaring the local storage variables, you're ready to build the actual properties associated with the storage space. Add the DatabaseName property to your project by selecting Tools | Add Procedure . . . from the main menu and entering DatabaseName as the procedure name and selecting the Property and Public option buttons (see Figure 12.18).
0473-01.jpg
Figure 12.18.
Adding the Databasename property.
After the Visual Basic editor creates the Property Let and Property Get functions, edit them to match the code in Listing 12.6.
Type.gifListing 12.6. Editing the DatabaseName property functions.
Public Property Get DatabaseName() As String
    '
    DatabaseName = frmFind.Data1.DatabaseName
    '
End Property
continues

 
< previous page page_473 next page >

If you like this book, buy it!